apiready = function() {
	$api.getUserInf(function(user) {
		var compounds = user.residential;
		$api.do_get("/api/property/notice", function(result) {
			var html = '';
			if (result) {
				for (var item =0;item<result.length;item++) {
					html += '<div class="notice_ite" onclick="showNotice(' + result[item]._id + ')" ><img  src="' + result[item].img + '" />  <span>' + result[item].keywords + '</span> &nbsp&nbsp&nbsp <span>' + result[item].title + '</span> </div>';

				}
				$(".am-u-s-12").html(html);

			} else {
				$("#noinfo").remove();
			}

		});
	});


};

function showNotice(id) {

	api.mOpenWin('shownoticeItem', 'noticeShow.html', {
		item_id: id
	});


}